package com.cos.openapi.entity;

import lombok.AllArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
@ToString
public class Customer implements Serializable {
    private Integer id;

    private String username;

    private String password;

    private String nickname;

    private Long money;

    private Short state;

    private String address;

    private static final long serialVersionUID = 1L;

    public Customer(Integer id, String username, String password, String nickname, Long money, Short state, String address) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.money = money;
        this.state = state;
        this.address = address;
    }

    public Customer() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }
}